﻿using CMS.BaseEntity;
using CMS.DataAccess;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

namespace CMS.BusinessLogic
{
    public class ProductLogic
    {
        ProductAccess pAccess = new ProductAccess();
        SectionAccess sAccess = new SectionAccess();
        public DataTable GetListBonus()
        {
            return pAccess.GetListBonus();
        }

        public DataTable FindAllByNameQuantity(Product product)
        {
            return pAccess.FindAllByNameQuantity(product);
        }

        public DataTable FindAllByName(Product product)
        {
            return pAccess.FindAllByName(product);
        }

        public DataTable FindAllByQuantity(Product product)
        {
            return pAccess.FindAllByQuantity(product);
        }

        public DataTable FindByEnableNameQuantity(Product product)
        {
            return pAccess.FindByEnableNameQuantity(product);
        }

        public DataTable FindByEnableName(Product product)
        {
            return pAccess.FindByEnableName(product);
        }

        public DataTable FindByEnable(Product product)
        {
            return pAccess.FindByEnable(product);
        }

        public DataTable GetByCategory(Product product)
        {
            return pAccess.GetByCategory(product);
        }

        public DataTable GetBySection(Product product)
        {
            return pAccess.GetBySection(product);
        }

        public bool IsInsertProduct(Product product)
        {
            return pAccess.IsInsertProduct(product);
        }

        public DataTable GetList()
        {
            return pAccess.GetListProduct();
        }

        public bool IsUpdated(Product product)
        {
            return pAccess.IsUpdated(product);
        }

        public DataTable GetById(Product product)
        {
            return pAccess.GetById(product);
        }

        public bool IsDeleted(Product product)
        {
            return pAccess.IsDeleted(product);
        }

        public DataTable FindByEnableQuantity(Product product)
        {
            return pAccess.FindByEnableQuantity(product);
        }
    }
}